package com.guguguweb.rpc.enumeration;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author [古文晟] guguguweb@163.com
 * @date [2022-06-14]
 * @description 响应状态码对象
 */
@AllArgsConstructor
@Getter
public enum ResponseCode {

    SUCCESS(200, "调用方法成功"),
    FAIL(501, "调用方法失败"),
    METHOD_NOT_FOUND(502, "未找到指定方法"),
    ClASS_NOT_FOUND(503, "未找到指定类"),

    METHOD_PROCESS_ERROR(505,"消费者方法执行内部失败");
    private final int code;
    private final String message;
}
